﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;

namespace MovieDB.Data.Configs
{
    public class VersionConvention : IVersionConvention
    {
        public void Apply(IVersionInstance instance)
        {
            instance.Column("Version");
            instance.Not.Nullable();
            instance.UnsavedValue("0");
            instance.Default(1);
        }
    }
}
